package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_viewEntity1_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_viewEntity1_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_3_24 = new TagInfo("c:get", //$NON-NLS-1$
            3, 24,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_26 = new TagInfo("c:get", //$NON-NLS-1$
            4, 26,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_4_77 = new TagInfo("c:iterate", //$NON-NLS-1$
            4, 77,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/primaryKeys/column", //$NON-NLS-1$
                "primaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_158 = new TagInfo("c:get", //$NON-NLS-1$
            4, 158,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($primaryKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_4_201 = new TagInfo("c:choose", //$NON-NLS-1$
            4, 201,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_4_211 = new TagInfo("c:when", //$NON-NLS-1$
            4, 211,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$primaryKey/@order=$pcolCount", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_256 = new TagInfo("c:get", //$NON-NLS-1$
            4, 256,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_306 = new TagInfo("c:get", //$NON-NLS-1$
            4, 306,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_4_367 = new TagInfo("c:otherwise", //$NON-NLS-1$
            4, 367,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_4_380 = new TagInfo("c:get", //$NON-NLS-1$
            4, 380,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_430 = new TagInfo("c:get", //$NON-NLS-1$
            4, 430,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_18 = new TagInfo("c:get", //$NON-NLS-1$
            6, 18,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_71 = new TagInfo("c:get", //$NON-NLS-1$
            6, 71,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_129 = new TagInfo("c:get", //$NON-NLS-1$
            6, 129,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_6_192 = new TagInfo("c:iterate", //$NON-NLS-1$
            6, 192,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/primaryKeys/column", //$NON-NLS-1$
                "primaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_6_259 = new TagInfo("c:choose", //$NON-NLS-1$
            6, 259,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_6_269 = new TagInfo("c:when", //$NON-NLS-1$
            6, 269,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$primaryKey/@order=$pcolCount", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_314 = new TagInfo("c:get", //$NON-NLS-1$
            6, 314,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_364 = new TagInfo("c:get", //$NON-NLS-1$
            6, 364,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_6_425 = new TagInfo("c:otherwise", //$NON-NLS-1$
            6, 425,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_6_438 = new TagInfo("c:get", //$NON-NLS-1$
            6, 438,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_488 = new TagInfo("c:get", //$NON-NLS-1$
            6, 488,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_20 = new TagInfo("c:get", //$NON-NLS-1$
            7, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lower-case($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_71 = new TagInfo("c:get", //$NON-NLS-1$
            7, 71,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            // 针对自身表
            out.write("\t@RequestMapping(\"/view");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_24 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_24); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_24.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_24.setTagInfo(_td_c_get_3_24);
            _jettag_c_get_3_24.doStart(context, out);
            _jettag_c_get_3_24.doEnd();
            out.write("\")");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic ModelAndView view");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_4_26 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_26); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_4_26.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_4_26.setTagInfo(_td_c_get_4_26);
            _jettag_c_get_4_26.doStart(context, out);
            _jettag_c_get_4_26.doEnd();
            out.write("(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_4_77 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_4_77); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_4_77.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_4_77.setTagInfo(_td_c_iterate_4_77);
            _jettag_c_iterate_4_77.doStart(context, out);
            while (_jettag_c_iterate_4_77.okToProcessBody()) {
                out.write("@RequestParam ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_4_158 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_158); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_4_158.setRuntimeParent(_jettag_c_iterate_4_77);
                _jettag_c_get_4_158.setTagInfo(_td_c_get_4_158);
                _jettag_c_get_4_158.doStart(context, out);
                _jettag_c_get_4_158.doEnd();
                out.write("  ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_choose_4_201 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_4_201); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_choose_4_201.setRuntimeParent(_jettag_c_iterate_4_77);
                _jettag_c_choose_4_201.setTagInfo(_td_c_choose_4_201);
                _jettag_c_choose_4_201.doStart(context, out);
                JET2Writer _jettag_c_choose_4_201_saved_out = out;
                while (_jettag_c_choose_4_201.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    RuntimeTagElement _jettag_c_when_4_211 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_4_211); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_when_4_211.setRuntimeParent(_jettag_c_choose_4_201);
                    _jettag_c_when_4_211.setTagInfo(_td_c_when_4_211);
                    _jettag_c_when_4_211.doStart(context, out);
                    JET2Writer _jettag_c_when_4_211_saved_out = out;
                    while (_jettag_c_when_4_211.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_4_256 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_256); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_4_256.setRuntimeParent(_jettag_c_when_4_211);
                        _jettag_c_get_4_256.setTagInfo(_td_c_get_4_256);
                        _jettag_c_get_4_256.doStart(context, out);
                        _jettag_c_get_4_256.doEnd();
                        RuntimeTagElement _jettag_c_get_4_306 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_306); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_4_306.setRuntimeParent(_jettag_c_when_4_211);
                        _jettag_c_get_4_306.setTagInfo(_td_c_get_4_306);
                        _jettag_c_get_4_306.doStart(context, out);
                        _jettag_c_get_4_306.doEnd();
                        _jettag_c_when_4_211.handleBodyContent(out);
                    }
                    out = _jettag_c_when_4_211_saved_out;
                    _jettag_c_when_4_211.doEnd();
                    RuntimeTagElement _jettag_c_otherwise_4_367 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_4_367); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_otherwise_4_367.setRuntimeParent(_jettag_c_choose_4_201);
                    _jettag_c_otherwise_4_367.setTagInfo(_td_c_otherwise_4_367);
                    _jettag_c_otherwise_4_367.doStart(context, out);
                    JET2Writer _jettag_c_otherwise_4_367_saved_out = out;
                    while (_jettag_c_otherwise_4_367.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_4_380 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_380); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_4_380.setRuntimeParent(_jettag_c_otherwise_4_367);
                        _jettag_c_get_4_380.setTagInfo(_td_c_get_4_380);
                        _jettag_c_get_4_380.doStart(context, out);
                        _jettag_c_get_4_380.doEnd();
                        RuntimeTagElement _jettag_c_get_4_430 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_430); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_4_430.setRuntimeParent(_jettag_c_otherwise_4_367);
                        _jettag_c_get_4_430.setTagInfo(_td_c_get_4_430);
                        _jettag_c_get_4_430.doStart(context, out);
                        _jettag_c_get_4_430.doEnd();
                        out.write(",");  //$NON-NLS-1$        
                        _jettag_c_otherwise_4_367.handleBodyContent(out);
                    }
                    out = _jettag_c_otherwise_4_367_saved_out;
                    _jettag_c_otherwise_4_367.doEnd();
                    _jettag_c_choose_4_201.handleBodyContent(out);
                }
                out = _jettag_c_choose_4_201_saved_out;
                _jettag_c_choose_4_201.doEnd();
                _jettag_c_iterate_4_77.handleBodyContent(out);
            }
            _jettag_c_iterate_4_77.doEnd();
            out.write(") {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tModelAndView mav = new ModelAndView();");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_18 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_18); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_18.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_18.setTagInfo(_td_c_get_6_18);
            _jettag_c_get_6_18.doStart(context, out);
            _jettag_c_get_6_18.doEnd();
            out.write("\", ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_71 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_71); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_71.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_71.setTagInfo(_td_c_get_6_71);
            _jettag_c_get_6_71.doStart(context, out);
            _jettag_c_get_6_71.doEnd();
            out.write("DAO.find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_129 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_129); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_129.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_129.setTagInfo(_td_c_get_6_129);
            _jettag_c_get_6_129.doStart(context, out);
            _jettag_c_get_6_129.doEnd();
            out.write("ByPrimaryKey(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_6_192 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_6_192); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_6_192.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_6_192.setTagInfo(_td_c_iterate_6_192);
            _jettag_c_iterate_6_192.doStart(context, out);
            while (_jettag_c_iterate_6_192.okToProcessBody()) {
                RuntimeTagElement _jettag_c_choose_6_259 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_6_259); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_choose_6_259.setRuntimeParent(_jettag_c_iterate_6_192);
                _jettag_c_choose_6_259.setTagInfo(_td_c_choose_6_259);
                _jettag_c_choose_6_259.doStart(context, out);
                JET2Writer _jettag_c_choose_6_259_saved_out = out;
                while (_jettag_c_choose_6_259.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    RuntimeTagElement _jettag_c_when_6_269 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_6_269); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_when_6_269.setRuntimeParent(_jettag_c_choose_6_259);
                    _jettag_c_when_6_269.setTagInfo(_td_c_when_6_269);
                    _jettag_c_when_6_269.doStart(context, out);
                    JET2Writer _jettag_c_when_6_269_saved_out = out;
                    while (_jettag_c_when_6_269.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_6_314 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_314); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_6_314.setRuntimeParent(_jettag_c_when_6_269);
                        _jettag_c_get_6_314.setTagInfo(_td_c_get_6_314);
                        _jettag_c_get_6_314.doStart(context, out);
                        _jettag_c_get_6_314.doEnd();
                        RuntimeTagElement _jettag_c_get_6_364 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_364); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_6_364.setRuntimeParent(_jettag_c_when_6_269);
                        _jettag_c_get_6_364.setTagInfo(_td_c_get_6_364);
                        _jettag_c_get_6_364.doStart(context, out);
                        _jettag_c_get_6_364.doEnd();
                        _jettag_c_when_6_269.handleBodyContent(out);
                    }
                    out = _jettag_c_when_6_269_saved_out;
                    _jettag_c_when_6_269.doEnd();
                    RuntimeTagElement _jettag_c_otherwise_6_425 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_6_425); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_otherwise_6_425.setRuntimeParent(_jettag_c_choose_6_259);
                    _jettag_c_otherwise_6_425.setTagInfo(_td_c_otherwise_6_425);
                    _jettag_c_otherwise_6_425.doStart(context, out);
                    JET2Writer _jettag_c_otherwise_6_425_saved_out = out;
                    while (_jettag_c_otherwise_6_425.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_6_438 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_438); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_6_438.setRuntimeParent(_jettag_c_otherwise_6_425);
                        _jettag_c_get_6_438.setTagInfo(_td_c_get_6_438);
                        _jettag_c_get_6_438.doStart(context, out);
                        _jettag_c_get_6_438.doEnd();
                        RuntimeTagElement _jettag_c_get_6_488 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_488); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_6_488.setRuntimeParent(_jettag_c_otherwise_6_425);
                        _jettag_c_get_6_488.setTagInfo(_td_c_get_6_488);
                        _jettag_c_get_6_488.doStart(context, out);
                        _jettag_c_get_6_488.doEnd();
                        out.write(",");  //$NON-NLS-1$        
                        _jettag_c_otherwise_6_425.handleBodyContent(out);
                    }
                    out = _jettag_c_otherwise_6_425_saved_out;
                    _jettag_c_otherwise_6_425.doEnd();
                    _jettag_c_choose_6_259.handleBodyContent(out);
                }
                out = _jettag_c_choose_6_259_saved_out;
                _jettag_c_choose_6_259.doEnd();
                _jettag_c_iterate_6_192.handleBodyContent(out);
            }
            _jettag_c_iterate_6_192.doEnd();
            out.write("));");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.setViewName(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_7_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_20); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_7_20.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_7_20.setTagInfo(_td_c_get_7_20);
            _jettag_c_get_7_20.doStart(context, out);
            _jettag_c_get_7_20.doEnd();
            out.write("/view");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_7_71 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_71); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_7_71.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_7_71.setTagInfo(_td_c_get_7_71);
            _jettag_c_get_7_71.doStart(context, out);
            _jettag_c_get_7_71.doEnd();
            out.write(".jsp\");");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\treturn mav;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
        out.write(NL);         
    }
}
